// MFCSocketDlg.h : header file
//

#pragma once
#include "..\MyInclude\ServerSocket.h"
#include "resource.h"
#include "d:\mfc\mfcsocket\trunk\myinclude\clientsocket.h"

// CMFCSocketDlg dialog
class CMFCSocketDlg_Server : public CDialog
{
// Construction
public:
	CMFCSocketDlg_Server(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MFCSOCKET_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

public:
	int m_port;
	char szBuff[256];
	ServerSocket m_socketServer;
	//MySocket m_socketClient;
	afx_msg void SocketAccept();
	afx_msg void SocketStartServer();
	afx_msg void SocketStopServer();
	afx_msg void SocketSendMessage();
	afx_msg void SocketReceiveMessage();
	afx_msg void OnBnClickedBtnStart();
	afx_msg void OnBnClickedBtnStop();
	ClientSocket m_clientSocket;
};
